﻿{extend name='base'}
{block name='seo'}
<title>添加文章</title>
<link rel="stylesheet" href="__STATIC__/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">
</head>
<body>
{/block}

{block name='content'}
<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 文章管理 <span class="c-gray en">&gt;</span> 添加文章 <a class="btn btn-primary radius" href="/admin.php/article/add.html"><i class="Hui-iconfont">&#xe600;</i></a></nav>
	<div class="Hui-article">
		<div style="margin-left:150px;">
			<div class="pd-20">
                <form action="/houtai.php/article/addChk" method="post" class="form form-horizontal" id="article_add" name="article_add" enctype="multipart/form-data">
                    <legend>添加文章</legend>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">文章标题：</label>
                        <div class="formControls col-xs-8 col-sm-4">
                            <input type="text" class="input-text" autocomplete="off" placeholder="文章标题" name="name">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">所属栏目：</label>
                        <div class="formControls col-xs-8 col-sm-4">
                            <span class="select-box">
                                <select class="select" size="1" name="cid">
                                    {volist name='channel' id='vo'}
                                        <option value="{$vo.id}">{$vo.name}</option>
                                    {/volist}
                                </select>
                            </span>
                        </div>
                    </div>
                    
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">缩略图：</label>
                        <div class="formControls col-xs-8 col-sm-8">
                            <span class="btn-upload form-group">
                                <input class="input-text upload-url" type="text" name="uploadfile-2" id="uploadfile-2" readonly>
                                <a href="javascript:void();" class="btn btn-primary upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件 </a>
                                <input type="file" name="thumb" class="input-file">
                            </span>
                        </div>
                    </div>
                    
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">文章简介：</label>
                        <div class="formControls col-xs-8 col-sm-4">
                            <textarea class="textarea" placeholder="文章简介..." rows="" cols="" name="intr"></textarea>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">SEO标题：</label>
                        <div class="formControls col-xs-8 col-sm-4">
                            <input type="text" name="title" class="input-text" autocomplete="off" placeholder="网页title">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">SEO关键字：</label>
                        <div class="formControls col-xs-8 col-sm-4">
                            <input type="text" name="keywords" class="input-text" autocomplete="off" placeholder="网页关键字">
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">SEO描述：</label>
                        <div class="formControls col-xs-8 col-sm-4">
                            <textarea class="textarea" placeholder="网页描述" rows="" cols="" name="description"></textarea>
                        </div>
                    </div>
                    <div class="row cl">
                        <label class="form-label col-xs-4 col-sm-2">文章详情：</label>
                        <div class="formControls col-xs-8 col-sm-8">
                            <!--父文本编辑器的容器-->
                            <script id="container" name="content" type="text/plain"></script>
                        </div>
                    </div>
                    <div class="row cl">
                        <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                            <input class="btn btn-primary radius" type="submit" value="提交">
                        </div>
                    </div>
                </form>
	       </div>
</section>
{/block}

{block name='js'}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__STATIC__/lib/datatables/1.10.15/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__STATIC__/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="__STATIC__/lib/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>

<script type="text/javascript" src="__STATIC__/lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/lib/ueditor/1.4.3/ueditor.all.js"></script>
<script>
//实例化编辑器
    var ue = UE.getEditor('container',{
        autoHeightEnabled:false,
        initialFrameHeight:420,
    });
</script>
<!--/请在上方写此页面业务相关的脚本-->
{/block}
